package model

import "gorm.io/gorm"

type GameIntroduction struct {
	gorm.Model
	GameInfoID   uint   `gorm:"index;not null;foreignKey:GameInfoID;constraint:OnDelete:CASCADE"`
	Introduction string `gorm:"type:text;not null"`

	GameInfo GameInfo `gorm:"foreignKey:GameInfoID"`
}

func (GameIntroduction) TableName() string {
	return "game_introduction"
}
